<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
<%
	request.setAttribute("title", "奖金详情");
%>
<%@ include file="/WEB-INF/views/shared/master/weContentHeader.jsp"%>

<%@ include file="/WEB-INF/views/shared/master/weTitle.jsp"%>
<div class="goback"	data-back-href="<c:url value='/wechat/acc/myWealth/incomeInfoDetail'/>"></div>
<div class="weui-form-preview">
  <div class="weui-form-preview__hd">
    <label class="weui-form-preview__label">交易金额</label>
    <em class="weui-form-preview__value">
    <c:if test="${incomeDetail.state == 'income'}">
		<span id="plusMinus" >+<fmt:formatNumber value="${incomeDetail.incomeAccount}" pattern="#.##" minFractionDigits="2" > </fmt:formatNumber>元	</span>
	</c:if>
	<c:if test="${incomeDetail.state == 'pay'}"> 
		<span id="plusMinus" >-<fmt:formatNumber value="${incomeDetail.incomeAccount}" pattern="#.##" minFractionDigits="2" > </fmt:formatNumber>元	</span>
	</c:if>
	</em>
  </div>
  <div class="weui-form-preview__bd">
  <div class="weui-form-preview__item">
      <label class="weui-form-preview__label">交易类型</label>
      <span class="weui-form-preview__value">
      <t:provider packageName="acc" enumClassName="IncomeState" value="${incomeDetail.incomeState}"/>
      </span>
    </div> 
    <div class="weui-form-preview__item">
      <label class="weui-form-preview__label">交易时间</label>
      <span class="weui-form-preview__value">
      <fmt:formatDate value="${incomeDetail.time}" pattern="yyyy-MM-dd HH:mm:ss"/>
      </span>
    </div>
    <div class="weui-form-preview__item">
      <label class="weui-form-preview__label">产品名称</label>
      <span class="weui-form-preview__value">${incomeDetail.purchasedProduct}</span>
    </div>
    <div class="weui-form-preview__item">
      <label class="weui-form-preview__label">购买人</label>
      <span class="weui-form-preview__value">${incomeDetail.purchaser}</span>
    </div>
    <%-- <c:if test="${incomeDetail.incomeState != 'TransferToBalance'}"> --%>
    <c:if test="${incomeDetail.commercialInsurance > 0}"> 
    <div class="weui-form-preview__item">
      <label class="weui-form-preview__label">保费</label>
      <span class="weui-form-preview__value">
      <fmt:formatNumber value="${incomeDetail.commercialInsurance}" pattern="#.##" minFractionDigits="2" > </fmt:formatNumber>元
      </span>
    </div>
    </c:if>
    <div class="weui-form-preview__item">
      <label class="weui-form-preview__label">交易单号</label>
      <span class="weui-form-preview__value">${incomeDetail.outTradeNo}</span>
    </div>
  </div>
<!--   <div class="weui-form-preview__ft">
    <a class="weui-form-preview__btn weui-form-preview__btn_default" href="javascript:">辅助操作</a>
    <button type="submit" class="weui-form-preview__btn weui-form-preview__btn_primary" href="javascript:">操作</button>
  </div> -->
</div>

<%@ include file="/WEB-INF/views/shared/scripts/jquery.jsp"%>
<%@ include file="/WEB-INF/views/shared/scripts/jqweui.jsp"%>

<%@ include file="/WEB-INF/views/shared/master/weContentFooter.jsp"%>
<script type="text/javascript">
function goback(){
	window.history.go(-1);
}
</script>
